// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_img.p_video;

import android.net.Uri;
import java.util.*;

// Referenced classes of package com.nnee.p_img.p_video:
//            u, ag, ac, a

public class cls_ak
    implements cls_u
{

    public cls_ak(List list, List list1, boolean flag)
    {
        int i = list.size();
        a.clear();
        int j = 0;
        while(j < i) 
        {
            Object obj;
            if(flag)
                obj = new cls_ag(this, (Uri)list.get(j), (String)list1.get(j));
            else
                obj = new cls_ac(this, (Uri)list.get(j), (String)list1.get(j));
            a.add(obj);
            j++;
        }
    }

    public cls_a a(int i)
    {
        return c(i);
    }

    public HashMap a()
    {
        HashMap hashmap = new HashMap();
        int i = b();
        for(int j = 0; j < i; j++)
        {
            Uri uri = c(j).b();
            hashmap.put(uri.toString(), Integer.valueOf(uri.hashCode()));
        }

        return hashmap;
    }

    public boolean a(cls_a a1)
    {
        return a.remove(a1);
    }

    public int b()
    {
        return a.size();
    }

    public int b(cls_a a1)
    {
        int i = 0;
while(true)
{
        if(i >= b())
            break  ;
        if(!c(i).equals(a1)) {
        	i++;
        } 
}
return i;
//_L1:
//        
//_L2:
//        i++;
//          goto _L3
//        i = a.indexOf(a1);
//          goto _L1
    }

    public boolean b(int i)
    {
        boolean flag;
        if(c(i) != null)
        {
            a.remove(i);
            flag = true;
        } else
        {
            flag = false;
        }
        return flag;
    }

    public cls_ac c(int i)
    {
        cls_ac ac1;
        if(i < 0 || i >= b())
            ac1 = null;
        else
            ac1 = (cls_ac)a.get(i);
        return ac1;
    }

    public boolean c()
    {
        boolean flag;
        if(b() == 0)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public void d()
    {
        a.clear();
    }

    private final ArrayList a = new ArrayList();
}
